<%--
  Created by IntelliJ IDEA.
  User: ztc
  Date: 16-4-8
  Time: 下午8:53
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<html>
<head>
    <title>新用户注册</title>
  <link href="${pageContext.request.contextPath}/css/min.css" rel="stylesheet">
  <link href="${pageContext.request.contextPath}/css/login.css" rel="stylesheet">
  <script src="${pageContext.request.contextPath}/js/jquery.js"></script>
  <script src="${pageContext.request.contextPath}/js/min.js"></script>
  <link rel="shortcut icon" type="image/x-icon" href="${pageContext.request.contextPath}/img/favicon.ico" />
</head>
<%
  request.setCharacterEncoding("utf-8");
  String msg=request.getParameter("msg");
  if(msg!=null){
%>
<script type="text/javascript">
  alert("<%=msg%>");
</script>
<%
  }
%>
<body>
<div class="container">
  <form class="form-signin" role="form" action="/users/userregister" method="get">
    <h3 class="form-signin-heading" align="center">欢迎注册</h3>
    <div class="form-group form-group-lg">
      <input type="text" name="name" class="form-control input-lg" required id="name" placeholder="姓名"/>
    </div>
    <div class="form-group form-group-lg" align="center">
      <label for="sex">男
        <input type="radio" name="sex" class="form-control input-lg" required id="sex" value="男" />
      </label>
      <label for="sex1">女
        <input type="radio" name="sex" class="form-control input-lg" required id="sex1" checked value="女" />
      </label>
    </div>
    <div class="form-group form-group-lg">
      <input type="text" name="email" class="form-control input-lg" required id="email" placeholder="邮箱(用于登录)"/>
    </div>
    <div class="form-group form-group-lg">
      <input type="password" name="password" class="form-control input-lg" required id="password" placeholder="密码"/>
    </div>
    <div class="form-group form-group-lg">
      <input type="text" name="qq" class="form-control input-lg" id="q" placeholder="QQ号(选填)"/>
    </div>
    <div class="form-group form-group-lg">
      <input type="text" name="weixin" class="form-control input-lg" id="weixin" placeholder="微信(选填)"/>
    </div>
    <div class="form-group form-group-lg">
      <input type="text" name="phone" class="form-control input-lg" id="phone" placeholder="手机号(选填)"/>
    </div>
    <div>
        <button type="submit" id="button" class="btn btn-primary btn-block btn-lg">注册</button>
    </div>
  </form>
</div>
</body>
</html>
